/*
** my_revstr.c for my_revstr in /home/chassa_m/rendu/Piscine-C-Jour_06/ex_03
** 
** Made by chassa_m
** Login   <chassa_m@epitech.net>
** 
** Started on  Mon Oct  7 15:03:13 2013 chassa_m
** Last update Wed Oct  9 14:49:26 2013 chassa_m
*/

char	*my_revstr(char *str)
{
  int   i;
  int   count;
  int   reverse;
  int   swap;

  i = 0;
  count = my_strlen(str);
  reverse = count / 2;
  while (i < reverse)
    {
      swap = str[i];
      str[i] = str[count - 1 - i];
      str[count - 1 - i] = swap;
      i = i + 1;
    }
  return (str);
}
